package com.rongke.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @CapitalDetailed
 * @(capital_detailed)
 * @version : Ver 1.0
 */
@TableName("capital_detailed")
public class CapitalDetailed implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:
	 * @字段:user_id BIGINT(19)
	 */
	private Long userId;

	public Long getBankCardInfo() {
		return bankCardInfo;
	}

	public void setBankCardInfo(Long bankCardInfo) {
		this.bankCardInfo = bankCardInfo;
	}

	private Long bankCardInfo;
	/**
	 * @备注:
	 * @字段:create_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date createDatetime;


	/**
	 * @备注:1-充值  2-申购 3-结算 4-体现
	 * @字段:type INT(10)
	 */
	private Integer type;

	private Long orderId;

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	/**
	 * @备注:
	 * @字段:money FLOAT(12)
	 */
	private Float money;


	public CapitalDetailed(){
	}

	public CapitalDetailed(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}


	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return this.userId;
	}


	public void setCreateDatetime(java.util.Date createDatetime) {
		this.createDatetime = createDatetime;
	}

	public java.util.Date getCreateDatetime() {
		return this.createDatetime;
	}


	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return this.type;
	}


	public void setMoney(Float money) {
		this.money = money;
	}

	public Float getMoney() {
		return this.money;
	}
}
